package kr.jobseeker.movinavi;

import android.os.Parcel;
import android.os.Parcelable;

public class DirInfo implements Parcelable{
	String distance;
	String duration;
	String end_location_lat;
	String end_location_lng;
	String start_location_lat;
	String start_location_lng;
	
	public DirInfo(String dis, String dur, 
			String end_loc_lat, String end_loc_lng, 
			String start_loc_lat, String start_loc_lng	){
		distance = dis;
		duration = dur;
		end_location_lat = end_loc_lat;
		end_location_lng = end_loc_lng;
		start_location_lat = start_loc_lat;
		start_location_lng = start_loc_lng;
	}

	public DirInfo(Parcel in){
		super();
		readFromParcel(in);
	}

	public static final Parcelable.Creator<DirInfo> CREATOR = new 
			Creator<DirInfo>() {
        public DirInfo createFromParcel(Parcel in) {
        	return new DirInfo(in);
        }
        public DirInfo[] newArray(int size) {
            return new DirInfo[size];
        }
    };

	public void readFromParcel(Parcel in) {
		distance = in.readString();
		duration = in.readString();
		end_location_lat = in.readString();
		end_location_lng = in.readString();
		start_location_lat = in.readString();
		start_location_lng = in.readString();
	}
    

	
	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		// TODO Auto-generated method stub
		// TODO Auto-generated method stub
		dest.writeString(distance);
		dest.writeString(duration);
		dest.writeString(end_location_lat);
		dest.writeString(end_location_lng);
		dest.writeString(start_location_lat);
		dest.writeString(start_location_lng);

	}

	public String getDistance() {
		return distance;
	}

	public void setDistance(String distance) {
		this.distance = distance;
	}

	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

	public String getEnd_location_lat() {
		return end_location_lat;
	}

	public void setEnd_location_lat(String end_location_lat) {
		this.end_location_lat = end_location_lat;
	}

	public String getEnd_location_lng() {
		return end_location_lng;
	}

	public void setEnd_location_lng(String end_location_lng) {
		this.end_location_lng = end_location_lng;
	}

	public String getStart_location_lat() {
		return start_location_lat;
	}

	public void setStart_location_lat(String start_location_lat) {
		this.start_location_lat = start_location_lat;
	}

	public String getStart_location_lng() {
		return start_location_lng;
	}

	public void setStart_location_lng(String start_location_lng) {
		this.start_location_lng = start_location_lng;
	}

	public static Parcelable.Creator<DirInfo> getCreator() {
		return CREATOR;
	}

	
	
}
